package com.arvato.right.bean.bean_vo;


/**
 * 权限管理之资源表
 * @author ZHAN655
 *
 */
public class WxworkRightResourceVo {
    /**
     * 主键ID
     */
	private String resourceId;
	/**
	 * 资源名称
	 */
    private String resourceName;
    /**
     * 资源对应的url
     */
    private String resourceUrl;
    /**
     * 父级资源ID
     */
    private String parentId;
    /**
     * 父级资源名称
     */
    private String parentName;
    /**
     * icon图标
     */
    private String icon;
    /**
     * 资源类型
     */
    private String type;
    /**
     * 状态
     */
    private Integer status;
    /**
     * 备注
     */
    private String note;
    /**
     * 节点路径
     */
    private String path;
    /**
     * 排序码
     */
    private String sortCode;
    
    private boolean checked;
    
    public String getResourceId() {
        return resourceId;
    }

    public void setResourceId(String resourceId) {
        this.resourceId = resourceId == null ? null : resourceId.trim();
    }

    public String getResourceName() {
        return resourceName;
    }

    public void setResourceName(String resourceName) {
        this.resourceName = resourceName == null ? null : resourceName.trim();
    }

    public String getResourceUrl() {
        return resourceUrl;
    }

    public void setResourceUrl(String resourceUrl) {
        this.resourceUrl = resourceUrl == null ? null : resourceUrl.trim();
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId == null ? null : parentId.trim();
    }

    public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note == null ? null : note.trim();
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path == null ? null : path.trim();
    }

	public String getSortCode() {
		return sortCode;
	}

	public void setSortCode(String sortCode) {
		this.sortCode = sortCode;
	}
    
    public boolean getChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	@Override
	public boolean equals(Object obj) {
		WxworkRightResourceVo resourceVo = (WxworkRightResourceVo)obj;
		if(resourceVo.getResourceId().equals(this.getResourceId())) {
			return true;
		}else {
			return false;
		}
	}
	
}